#include "StdAfx.h"
#include "ResourceManager.h"

VAMPIRE_NAMESPACE_BEGIN

ResourceManager::ResourceManager(void) : mpMeshMgr(NULL), mpTexFactory(NULL)
{
	mpTexFactory = TextureFactory::getSingletonPtr();
	mpMeshMgr = MeshManager::getSingletonPtr();
}

void ResourceManager::addTextureLocation( const TString& path )
{
	mpTexFactory->addLocation(path);
}

void ResourceManager::addMeshLocation( const TString& path )
{
	MeshManager::getSingletonPtr()->addLocation(path);
}

void ResourceManager::addLocation( const TString& path )
{
	addMeshLocation(path);
	addTextureLocation(path);
	addShaderLocation(path);
}

void ResourceManager::addShaderLocation( const TString& path )
{
	EffectManager::getSingletonPtr()->addLocation(path);
}

REGISTER_HELPER_IMPLEMENT(ResourceManager);

VAMPIRE_NAMESPACE_END
